#ifndef RANDR_H
#define RANDR_H

#include <stdint.h>
#include <xcb/xcb.h> // xcb lib

typedef struct Rect {
    int16_t x;
    int16_t y;
    uint16_t width;
    uint16_t height;
} Rect;

extern int xr_screens;       // out of this file var
extern Rect *xr_resolutions; // out of this file var

void randr_init(int *event_base, xcb_window_t root);
void randr_query(xcb_window_t root);

#endif // header file protect
       // END: CODEREVIEW
